__label__YES "the effect is garbage data gets trickled up, and used for the channel."
__label__NO ">this patch works around this by assuming we can't trust the hal to manage this case for us."
__label__NO "it just wasn't quickly obvious to me how this was going wrong when i tried to investigate chibios's implementation."
__label__NO "sitl also went wrong, and i didn't see a good way to solve this without a deep dive into hal's that i didn't have a way to test."
__label__NO ">this still needs more bench testing before coming in, i've only managed to sitl test the described case above so far, i just wanted this presented for earlier review, and guidance."
__label__YES "copter: add pre-arm and mode init checks of ekf's altitude estimate"
__label__YES "this pr resolves issue by adding a mandatory pre-arm check of the ahrs/ekf altitude estimate."
__label__NO "a check is also added to the set_mode call to catch problems when the user attempts to switch modes."
__label__YES ">the issue is more serious than initially expected if the user sets ekx_alt_source = (gps) because the user could more easily arm and takeoff in althold before the ekf gets a good height estimate."
__label__YES "this can lead to the vehicle continuously climbing or descending at it's maximum rate (i.e..m/s or .m/s) which at best leads to a hard landing."
__label__NO ">this has been tested in sitl including reproducing the existing behaviour in master (see below) ![copter-alt-source-althold]("
__label__NO ">below is a screen shot of some sitl testing in which arming and switching modes while flying was prevented."
__label__NO ![image](
__label__NO ">the only small issue we may have is that both the, ""need position estimate"" and ""need alt estimate"" messages may be displayed before there is a gps lock and ekx_alt_source = ."
__label__YES "copter: althold::init() should check ekf altitude is healthy"
__label__YES "althold, sport and possibly all other modes except stabilize and acro (i.e.those with manual throttle) should check that the ekf has a good altitude estimate before switching into the mode when armed (i.e.add to the mode's init() function)."
__label__YES ">we may also need to add a pre-arm/arming check that we have a good altitude estimate and it should not be possible to bypass this check by setting arming_check = ."
__label__YES "there is a similar existing check that ensures that users cannot arm in autonomous modes without a good position estimate so this may be a good reference to base the change on."
__label__NO ">note that it should always be possible to get into any mode while disarmed."
__label__YES ">when testing whether the fix works or not, it should be possible to disable the barometer in sitl (i hope we have a sim_baro_fail or similar parameter) and then confirm that the vehicle cannot enter althold mode when armed and that the vehicle cannot arm in althold."
__label__NO "copter: keep logging after parachute release"
__label__NO "we probably want to keep logging after a parachute release in order to capture the impact in the logs."
__label__NO "request from roberto n."
__label__NO "copter/ap_parachute: fix parachute checks for sink rate (attempt )"
__label__NO "this is a modified version of pr:"
__label__YES ">this pr (like the previous one) fixes copter's parachute feature so that it deploys the parachute and disarms the vehicle if the vehicle's descent rate falls below the chute_crt_sink parameter value."
__label__NO ">the current issue in master (and presumably copter-..x) can be reproduced by doing the following:"
__label__NO ">- start sitl copter - param set chute_enable - param set chute_type (servo) - param set chute_crt_sink (m/s) - param set servo_function (parachute release) - arm and fly the vehicle in stabilize mode to a reasonable altitude - rc to reduce throttle to near zero"
__label__YES ">in master the vehicle will maintain it's attitude but will fall rapidly and the parachute is **not** deployed."
__label__YES ">with this pr applied, the parachute is deployed and the vehicle is disarmed."
__label__NO ">below are before vs after screen shots of testing in sitl ![chute-before]("
__label__NO >![chute-after](
__label__NO ">@tridge would you be able to re-test with plane to ensure it is ok?"
__label__NO "this should be a non-functional change for plane but just to be sure."
__label__YES "plane: automatic landing with an enabled rangefinder causes immediate full descent into the ground"
__label__NO "## bug report **issue details**"
__label__NO ">plane lands excellently using rtk."
__label__YES "as soon as we plug in a rangefinder, the landing approach is hijacked and the airplane descends at full rate to the ground."
__label__NO "rngfnd_land = the whole time."
__label__NO "very repeatable."
__label__NO ">**version** .. beta"
__label__NO ">**platform** [ ] all [ ] antennatracker [ ] copter [x] plane [ ] rover [ ] submarine"
__label__NO ">**airframe type** twin motor electric with reverse thrust"
__label__NO ">**hardware type** cube orange, blheli esc's with telemetry, mro fp gnss with ntrip rtk streamed"
__label__NO ">**logs** rtk successful landing and rangefinder plugged in landing:"
__label__YES "copter: release parachute if vehicle expectedly falls but maintains attitude"
__label__YES "this issue came up on the forums here: involving a situation where the vehicle had a mechanical failure and crashed but it maintained it's attitude during the fall which meant the parachute did not deploy."
__label__YES ">we should enhance the parachute to deploy (perhaps optionally) if the vehicle loses it's ability to control altitude."
__label__NO "copter: pre-arm check of deprecated fs_gcs_enable = (continue in auto)"
__label__NO "this pr makes two changes related to the fs_gcs_enable and fs_option parameters:"
__label__NO ">- adds a pre-arm check if fs_gcs_enable == (continue in auto) to catch users who may have set this to ""."""
__label__NO "below is a screen shot captured while testing this check ![image]("
__label__NO ">- fs_options defaults to """" (was """") which means, ""continue if in pilot controlled modes on gcs failsafe""."
__label__NO "this was discussed on a weekly dev call about to weeks ago and we decided this what most users would expect."
__label__NO "this has been tested in sitl to ensure that new installations of . will have the value set to """" and also that upgrades from ..x (which did not have the fs_options parameter) get set correctly as part of param conversion."
__label__NO ">below is a screenshot of the parameter conversion (from ..x to .) result when fs_gcs_enable = (in copter-..x)."
__label__NO "this is correctly converted to (+) in copter-.."
__label__NO ![image](
__label__NO "> this pr closes issue:"
__label__YES "copter/rover: vehicles should back away from objects"
__label__YES "as mentioned on some of our avoidance related wiki page ([sfc]( [dev avoidance page]( copter and rover will stop before hitting something but they will never back away from an object so we should add support for this."
__label__YES "note that this is true both horizontally and vertically (i.e.a copter flying through a cave will not descend in order to avoid hitting the roof)."
__label__NO ">we can probably accomplish this by:"
__label__NO ">- add avoid_revxy_speed and avoid_revz_speed parameters to ac_avoidance/ac_avoid library."
__label__YES "this params will hold the max speed that the vehicle will reverse or descend."
__label__YES "- modify the horizontal and vertical velocity adjustment functions in ac_avoidance to allow the final velocity to be in the reverse direction of the input velocity (see [ac_avoidance/ac_avoid::adjust_velocity_z ]( and [ac_avoid::adjust_velocity]("
__label__YES "for example, for the vertical velocity adjustment (i.e.the part which stops the vehicle from hitting the altitude fence or the roof) the ""adjust_velocity_z"" function has a line like below after which it goes to handle the case where the vehicle has breached the altitude fence."
__label__YES "currently it reduces the climb rate to zero but it could instead set it to avoid_revz_speed."
__label__NO ">> if (alt_diff <= .f) {"
__label__YES "copter: warn when single motors reaches throttle limits as it's a sign the motor is failing"
__label__YES "i just had a crash due to a burnt motor."
__label__YES "the copter was set up to fly in a range of -% throttle, with peaks usually going to no more than % at maximum speed and full climb during loiter and auto ."
__label__YES ">during the last flight, the logs reveal that the throttle level of motor no."
__label__YES "suddenly rises to nearly constant % for almost a minute."
__label__YES "then the copter went out of control (tipped over motor no."
__label__NO ).
__label__YES "obviously the motor now had failed completely."
__label__YES "the coils of the motor were made by multi-strand wire - i guess one or more single wires of the coil broke/failed just as the output power reduced."
__label__YES "in the following minute, the remaining wires began to overheat and finally burnt completely."
__label__NO "the drive setup has been tested on the ground with continuous % throttle without any issues for minutes."
__label__NO >![figure_](
__label__YES ">i think the crash could have been avoided easily with a warning to the operator about the unusually high throttle output."
__label__YES "what do you think about adding a gcs/telemetry warning as soon as the throttle limits are reached during loiter and auto?"
__label__YES "even a failsafe/land action might be useful in this situation to prevent a crash or a fly-away."
__label__YES "ac_avoid: improve reliability of simple avoidance"
__label__YES "this pr adds two new feature which should go a long way in improving the reliability of simple avoidance:"
__label__NO ">adds a param: avoid_alt_min."
__label__YES "if a down facing range finder is availble, it will switch off proximity avoidance below alt_min adds a param: avoid_accel_max."
__label__YES "this limits the maximum allowed change in velocity that avoidance can make (per axis) this is a very important new addition which will make the avoidnace experience much more smoother, here is an example of what happens:"
__label__YES "downward-facing rangefinder based low altitude fence"
__label__YES "this fence prevents the copter from hitting the ground in all flight modes except stabalize, rtl and land."
__label__YES "if for some reason it does manage to go bellow the fence then rtl is triggered (rtl_alt should be bigger than fence_alt_min parameter)."
__label__YES "rtl and land flight modes completely ignore this fence."
__label__YES ">if no range finder is present it will use the height sensor selected in the ek_alt_source or ek_alt_source parameter ( )"
__label__NO ">it contains ci tests."
__label__NO ![laf_log](
__label__YES "ap_proximity: add a low pass filter to faces"
__label__NO "this pr adds a low pass filter to each ""face""."
__label__YES "its an atempt to reduce the reaction of glitches on simple avoidance."
__label__YES "what often happens is that (as reported by several logs on the forums) there is no filtiration in the current sensor drivers, and any noise gets passed down as obstacles."
__label__YES "this gives a sudden jerky response by the vehicle, which may even lead to crash."
__label__NO "to see the filteration in action, please see this video: here is an image from onboard logs tested on cube orange + intel realsense cameras: ![image]("
__label__NO ">red line is the filtered distances, green line is the raw distances."
__label__NO "a mode filter instead of low pass filter was also tested, but the ""smothness"" that comes with the low pass filter is desired."
__label__NO ">additional param is also added to enable ""raw distance"" logging for debugging purposses."
__label__NO "normally it will be turned off."
__label__YES "plane: climb before turn on rtl"
__label__NO "before i write anything let me point out that other people were requesting this rtl behavior change in a more or less similar way."
__label__NO "my today's fpv experience: i took off from a spot meters amsl (altitude above mean sea level) i was remotely landing the plane while in the stabilized mode at an rc field that was a meters away from me and a bit lower - amsl."
__label__NO "i was gliding in for landing."
__label__NO "all was great."
__label__NO "i had a perfect video link to make a nice landing."
__label__YES "just before the touch down, the plane lost rc link and the rtl mode kicked in."
__label__YES "i was no longer in control."
__label__YES "the ardupilot software executed an immediate right turn towards the take off position without any climb."
__label__NO "just a turn."
__label__YES "that of course was followed by a crash as the plane was so low and the tip of the wing touched the ground."
__label__NO "my rtl altitude was set to meters."
__label__YES "i suggest the code should be adjusted to climb the plane to a safe altitude before turning to the home position."
__label__NO "i understand this could not suite to all platforms so at least this behavior could be user pick able."
__label__NO "the only data that survived was the camera footage."
__label__NO "the flight deck sdcard was destroyed."
__label__NO ">[video of the event here]("
__label__YES ">as you can see, the only thing needed for a happy ending, was a little climb before the turn and the plane would had been saved."
__label__YES "can someone make this a priority before other people crash their planes during a low altitude rtl triggering?"
__label__YES "copter: ekf failsafe only triggers if ekf has ever had a good position estimate"
__label__NO "this pr resolves issue which involves the ekf failsafe triggering soon after the vehicle is armed in stabilize (or any other non-gps mode) if it doesn't have a good position estimate."
__label__YES "when the ekf failsafe triggers in a non-gps mode no action is taken but it still unnecessarily worries the user who sees ""ekf variance"" appear on the gcs and also sees the vehicle's led's flash."
__label__NO ">the fix has two parts:"
__label__NO >.
__label__YES "the ekf failsafe only triggers if the threshold and position checks have passed at least once since startup."
__label__NO "this resolves the problem seen above ."
__label__YES "the ekf failsafe may trigger while the vehicle is disarmed but will take no action."
__label__NO ">the potential downsides of the second change are:"
__label__NO >.
__label__NO "the user may see the ekf failsafe trigger (e.g.""ekf variance"" message and flashing leds) that they would not have seen before if the ekf momentarily passes the checks but then fails again."
__label__NO .
__label__YES "it may take second longer for the vehicle to become arm-able in loiter if the ekf failsafe has triggered while disarmed because once triggered, the ekf failsafe always takes at least second to clear and copter's arming checks use the ""position_ok()"" call which in turn checks the ekf failsafe is clear."
__label__NO ">this has been lightly tested in sitl and seems to function but needs some more testing especially to be sure the above issues are rare."
__label__NO "if they are not rare we may chose to remove the nd change."
__label__YES "copter: add ekf failsafe notify tones"
__label__YES "when ekf failsafe was triggered, some users were unaware that it was switched to land."
__label__YES "they feel that the copter suddenly become unstable and descend."
__label__YES "i think tonealarm makes the user aware the failsafe easily."
__label__NO ">i tested this in copter using cubeblack without propellers."
__label__NO "if ekf failsafe is triggered, activates buzzer."
__label__NO "after disarmed, stop the buzzer."
__label__NO ">if we need same functionality in other vehicles, i can add it."
__label__YES "ap_motors: constrain get_throttle_hover value with allowed range"
__label__NO "failure testing for . flight certification"
__label__NO "this is a forward port of from copter-.. to to the copter-. branch."
__label__NO "i also improved the commit messages a bit."
__label__NO ">this is meant for testing purposes only."
__label__NO "this enables some flight certification tests."
__label__NO ">do not use in production"
__label__YES "ap_arming: determine the minimum voltage of fc at volts when gnss is connected"
__label__NO "i would like to use fp to increase my positioning accuracy."
__label__NO "i wanted to set the minimum voltage of the fc to volts after seeing the report below."
__label__NO "i am also including other gnss because higher voltage is better for the device than lower voltage."
__label__NO >report:
__label__NO ">after: ![screenshot from -- --]("
__label__YES "copter/quadplane: set yaw rate to zero during arming"
__label__YES "this pr fixes a bug where the act of arming the aircraft commands a yaw rate request that is not zeroed."
__label__YES "this means that the aircraft develops a yaw offset immediately after arming."
__label__NO ">this also fixes a similar issue with loiter where the attitude is commanded level rather than the current attitude causing motors to run up unnecessarily."
__label__YES "arduplane: add ac_fence for qgc. geofence support"
__label__NO "pr based on # - see further discussion there"
__label__YES ">- moves plane from `geofence` to `ac_fence` for fence support in qgc."
__label__YES "- `geofence` capability has been dropped in favour of `ac_fence`."
__label__NO "some assumptions have been made."
__label__YES "- adds floor breaching to `ac_fence` - adds an autotest for testing ceiling and floor breaches."
__label__NO "issue in existing geofence implementation would be carried across (#) - existing autotests for `geofence` work, mostly untouched."
__label__NO "- discussion to be had around mav status present/enabled bits."
__label__NO ">requires: - merge - documentation:"
__label__YES ">todo: - [x] minimum altitude fence breach - _autotests have been added_ - [x] ensure we can auto-enable the fence when vehicle armed - _autotests have been added_ - [x] should disallow arming if we are outside the fence when we auto-enable - _autotests have been added_ - [x] need tests around mav_cmd_do_fence_enable - [x] fence_ret_rally works - _autotests have been added._ - [x] need tests for what happens when fences are disabled while we're breached and undertaking an action - _autotests have been added_"
__label__YES "ap_arming: pre-arm check if compass is disabled but or are enabled"
__label__YES "this pr adds a pre-arm check to reduce the chance of users accidentally disabling all compasses when they only intended to disable the first one."
__label__NO "see issue"
__label__YES ">the issue can happen (and has happened) because users assume that they can disable the first compass but keep on using the nd or rd compass if they set params like this:>-"
__label__NO "compass_use = - compass_use = - compass_use ="
__label__YES ">since the compass prioritisation changes however this results in the ekf not using any compasses which is unexpected and potentially dangerous."
__label__NO ">the potential downside of this change is that users who wish to disable use of the compass completely will need to set parameters instead of just one."
__label__NO ">this has been lightly tested in sitl and seems to do what we need."
__label__NO ">this is on the copter-. blockers list."
__label__NO 
__label__NO >p.s.
__label__NO "this pr also includes a drive-by change to remove the unused ""compass::set_use_for_yaw()"" method."
